package org.gpp.proj1.map.combat;

import com.jme.math.Quaternion;
import com.jme.math.Vector3f;

/**
 * Class that represents a deroration object in a map
 * @author Pablo Diego
 */
public class Decoration {

	public final Quaternion rotation;
	public final Vector3f translation;
	public final float scale;
	
	public final String model;
	public final String texture;
	
	/**
	 * @param rotation
	 * @param translation
	 * @param scale
	 * @param modelPath
	 * @param texturePath
	 */
	public Decoration(String modelPath, String texturePath, float scale, Vector3f translation, Quaternion rotation){

		this.model = modelPath;
		this.texture = (texturePath == null ||
					  	texturePath.trim().equals("null") ||
					  	texturePath.trim().equals("")) ? null : texturePath;
		
		this.scale = scale;
		this.translation = translation;
		this.rotation = rotation;
	}
	
	/**
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Model: " + this.model + " - Texture: " + this.texture + " - Scale: " + this.scale +
			" - Translation: " + this.translation.toString() +
			" - Rotation: " + this.rotation.toString();
	}
}